<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
	<ui:composition template="/pages/protected/templates/pageLogin.xhtml">
		<ui:define name="divBody">
			<!-- Slider -->
			<div id="slider-block">
				<div id="slider-holder">
					<div id="slider">
						<h:graphicImage library="images" name="Arquivos.jpg"
							title="Sistema de Arquivos" alt="" />
						<h:graphicImage library="images" name="Risco.jpg"
							title="Sistema do Risco" alt="" />
						<h:graphicImage library="images" name="ContasAPagar.jpg"
							title="Sistema de Contas a Pagar" alt="" />
						<h:graphicImage library="images" name="Ouvidoria.jpg"
							title="Sistema da Ouvidoria" alt="" />
						<h:graphicImage library="images" name="ProcapCred.jpg"
							title="Sistema ProcapCred" alt="" />
					</div>
				</div>
			</div>
			<!-- ENDS Slider -->

			<!-- MAIN -->
			<div id="main">
				<!-- wrapper-main -->
				<div class="wrapper" style="width:100%;">

					<!-- headline -->
					<h:form id="loginform">
					
						<p:growl showDetail="false" life="3000"
							severity="info, warn, error" />
				
						<div id="headline" style="width: 380px; float: left; margin-left: 200px;">
							<span class="main">Intranet Uniprime Central</span>
							
							<h:panelGrid id="painel" style="margin-bottom:10px;" cellpadding="5">  
								<p:row>  
           							<p:column>	
										<h:outputText value="#{bundle.singularCentral}:"  />
									</p:column>
									<p:column colspan="2">
										<h:selectOneMenu value="#{loginMB.singularSelecionada}" style="margin-left: 20px; ">
								   			<f:selectItem itemLabel="#{bundle.selSingularCentral}" /> 
								   			<f:selectItems value="#{loginMB.singulares}" />
								   			<f:converter converterId="singularConverter" />
								   		</h:selectOneMenu>
						   			</p:column>
								</p:row>
								<p:row>  
           							<p:column>	
										<h:outputLabel value="#{bundle.loginUserName}:" style="margin-left: 0px;"/>
									</p:column>
									<p:column colspan="2">
										<h:inputText value="#{loginMB.login}" label="Login" id="login"
											required="true" style="margin-left: 20px; margin-top: 15px">
											<f:validateLength minimum="3" />
										</h:inputText>
									</p:column>
								</p:row>
								<p:row>  
           							<p:column>	
										<h:outputLabel value="#{bundle.loginPassword}:"/>
									</p:column>
									<p:column>		
										<h:inputSecret value="#{loginMB.password}" label="Password"
											id="senha" required="true" autocomplete="off"
											style="margin-left: 28px;">
											<f:validateLength minimum="3" />
										</h:inputSecret>
									</p:column>
									<p:column>
										<p:commandButton action="#{loginMB.login}" value="Entrar"
											ajax="false" style="margin-left: 42px; " update="growl" />
									</p:column>
								</p:row>	
							</h:panelGrid>		
						</div>
					</h:form>
				</div>
				<!-- ENDS wrapper-main -->
			</div>
			<!-- ENDS MAIN -->
		</ui:define>
	</ui:composition>
</h:body>
</html>
<!-- <p:selectOneMenu value="#{loginMB.agenciaSelecionada}" effect="fold" editable="true">  
						            <f:selectItem itemLabel="Select One" itemValue="" />  
						            <f:selectItems value="#{loginMB.agencias}" />  
						        </p:selectOneMenu>
								<p:selectOneMenu value="#{loginMB.agenciaSelecionada}"
									converter="agencia" panelStyle="width:150px" effect="fade"
									var="a" style="width:160px" filter="true"
									filterMatchMode="startsWith">
									<f:selectItem itemLabel="#{bundle.selecionarAgencia}" itemValue="" />
									<f:selectItems value="#{loginMB.agencias}" var="agencia"
										itemLabel="#{agencia.cidade}" itemValue="agencia" />
									<p:column>
										#{a.numero}
									</p:column>
									<p:column>  
						                 #{a.cidade}  
						            </p:column>
								</p:selectOneMenu> -->